package com.simple.vo;

public class SearchQuestionResult {
	/**
	 * 如果type = 0， 表示是我们自己的题库，此时questionId > 0;  
	 * 如果type = 1， 表示是阿凡题库，此时questionId为0， aFanTi字段不为null;
	 */
	private int type = 0; 
	private long questionId = 0L;
	private AFanTi aFanTi = null;
	
	public SearchQuestionResult(long questionId) {
		this.type = 0;
		this.questionId = questionId;
	}
	
	public SearchQuestionResult(AFanTi aFanTi) {
		this.type = 1;
		this.aFanTi = aFanTi;
	}
	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public long getQuestionId() {
		return questionId;
	}
	public void setQuestionId(long questionId) {
		this.questionId = questionId;
	}
	public AFanTi getaFanTi() {
		return aFanTi;
	}
	public void setaFanTi(AFanTi aFanTi) {
		this.aFanTi = aFanTi;
	}
	
	
	
}
